﻿using System;

namespace NewRetail.Application.Utility.Hubs
{
    public class SignalrOnOrOffLineData
    {
        /// <summary>
        /// 用户Id
        /// </summary>
        public string UserId { get; set; }
        /// <summary>
        /// 连接Id
        /// </summary>
        public string ConnectionId { get; set; }
        /// <summary>
        /// 身份认证名称
        /// </summary>
        public string IdentityName { get; set; }
        /// <summary>
        /// 连接实时服务的时间
        /// </summary>
        public DateTime ConnecServerTime { get; set; }
        /// <summary>
        /// 在线数
        /// </summary>
        public int ConnCount { get; set; }
        /// <summary>
        /// 是否该用户的最后一个连接
        /// </summary>
        public bool IsLast { get; set; }
        /// <summary>
        /// 是否该用户的第一个连接
        /// </summary>
        public bool IsFirst { get; set; }
    }
}
